<%--
  Created by IntelliJ IDEA.
  User: 舒俊容
  Date: 2023/12/26
  Time: 9:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>个人信息</title>

  <link rel="stylesheet" href="css/regsist.css">
</head>
<body>

<div class="container">
  <div class="container">
    <div class="panel panel-info">
      <div class="panel-heading">
        <h3 class="panel-title">
          修改个人信息
        </h3>
      </div>
      <div class="panel-body" style="padding: 20px;">
        <form action="UserInfoServlet" class="form-horizontal" role="form" method="post" enctype="multipart/form-data">
          <div class="form-group">
            <label for="account" class="col-sm-2 control-label">账户：</label>
            <div class="col-sm-10">
              <input type="text" readonly class="form-control" name="account" id="account" placeholder="请输入昵称" value="${sessionScope.user.account}">
            </div>
          </div>
          <div class="form-group">
            <label for="nickname" class="col-sm-2 control-label">昵称：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" name="nickname" id="nickname" placeholder="请输入昵称" value="${sessionScope.user.nickname}">
            </div>
          </div>

          <div class="form-group">
            <label for="email" class="col-sm-2 control-label">电子邮件：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" name="email" id="email" placeholder="请输入电子邮件" value="${sessionScope.user.email}">
            </div>
          </div>
          <div class="form-group">
            <label for="mobile" class="col-sm-2 control-label">手机号码：</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" name="mobile" id="mobile" placeholder="请输入手机号码" value="${sessionScope.user.mobile}">
            </div>
          </div>
          <div class="form-group">
            <label for="photo" class="col-sm-2 control-label">头像：</label>
            <div class="col-sm-10">
              <input type="file" class="form-control" name="photo" id="photo" placeholder="请选择头像照片" accept="image/jpg,image/jpeg,image/png" value="${sessionScope.user.photo}">
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-default">确定</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

</body>
</html>